package com.zhou.mango.sharting;

import org.jfaster.mango.sharding.DatabaseShardingStrategy;

/**
 * @author Mr.zhou
 */
public class OrderDatabaseShardingStrategy implements DatabaseShardingStrategy<Integer> {
    @Override
    public String getDataSourceFactoryName(Integer uid) {
        return "dsf" + uid % 2;
    }
}
